package com.xhai.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 角色权限关联表
 * </p>
 *
 * @author xhai
 * @since 2025-05-24
 */
@Getter
@Setter
@ToString
@TableName("sys_role_perm")
@Schema(name = "SysRolePerm", description = "角色权限关联表")
public class SysRolePerm implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色ID
     */
    @Schema(description = "角色ID")
    @TableField(value = "ROLE_ID")
    private Long roleId;

    /**
     * 权限ID
     */
    @Schema(description = "权限ID")
    @TableField(value = "PERM_ID")
    private Long permId;
}
